package com.dataart.training.crimequalification.xmltools;

import com.dataart.training.crimequalification.domain.CrimeDetails;
import com.dataart.training.crimequalification.domain.LegalNorm;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;
import java.util.List;

public interface XMLCrimeDetailsRepresentationService {

    public String crimeDetailsToXML(CrimeDetails crimeDetails) throws ParserConfigurationException, TransformerException;

    public CrimeDetails parseXMLForCrimeDetails(String pathToFile);

    public CrimeDetails getTaskSolution(Integer taskId);

    public List<CrimeDetails> retrieveAllCodexEntries();

    public LegalNorm getLegalNormFromCodexXMLEntry(String pathToFile);

}
